package Entities;

import java.sql.Date;
import java.util.Objects;

public class OrderServiceListEntity {
    private int serviceId;
    private String purchaseNo;
    private Date serviceDate;
    private String serviceType;
    private String userName;
    private String serviceDetail;

    public int getServiceId() {
        return serviceId;
    }

    public void setServiceId(int serviceId) {
        this.serviceId = serviceId;
    }

    public String getPurchaseNo() {
        return purchaseNo;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo;
    }

    public Date getServiceDate() {
        return serviceDate;
    }

    public void setServiceDate(Date serviceDate) {
        this.serviceDate = serviceDate;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getServiceDetail() {
        return serviceDetail;
    }

    public void setServiceDetail(String serviceDetail) {
        this.serviceDetail = serviceDetail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderServiceListEntity that = (OrderServiceListEntity) o;
        return serviceId == that.serviceId &&
                Objects.equals(purchaseNo, that.purchaseNo) &&
                Objects.equals(serviceDate, that.serviceDate) &&
                Objects.equals(serviceType, that.serviceType) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(serviceDetail, that.serviceDetail);
    }

    @Override
    public int hashCode() {

        return Objects.hash(serviceId, purchaseNo, serviceDate, serviceType, userName, serviceDetail);
    }
}
